
require.config({
	
			   waitSeconds: 0,
               paths: {

	                Zepto: './lib/zepto/zepto-loader',   
	                Underscore: './lib/underscore/underscore-loader',
	            	Backbone: './lib/backbone/backbone-loader',
	            	IScroll: './lib/iscroll/iscroll-lite',
	            	Router: './router',
	            	OAuth: './lib/oauth/jsOAuth-1.3.6.min',
	            	Childbrowser: './lib/childbrowser/childbrowser'
	              
                },
               		
               	//Definition of module dependencies, needed to load the modules in the right order 	
				shim: {
					'Underscore': ['Zepto'],
					'Backbone': ['Underscore', 'Zepto'],
					'OAuth' : ['Backbone']
				}
		});

require([
         // Load our modules
         'Zepto', 'Underscore', 'Backbone', 'Router' 
         
         // Some plugins have to be loaded in order due to there non AMD compliance
         // Because these scripts are not "modules" they do not pass any values to the definition function below
         
         
         ], function( $, _, Backbone, AppRouter){
		
			function run () {
				app = new AppRouter();
				Backbone.history.start();
				//navigator.splashscreen.hide();
		 	};
			
			document.addEventListener("deviceready", run, false);
			run();
		}
);



